#include <stdio.h>  
#include <string.h>  
char s[1005];  
  
int huiwen(char *start, char *end) {  
    if (*start != * end)  
        return 0;  
    if (start + 1 == end || start == end)  
        return 1;  
    return huiwen(start + 1, end - 1);  
}  
  
int main() {  
    gets(s);  
    if (huiwen(s, s + strlen(s) - 1) || strlen(s) == 0)  
        printf("Yes\n");  
    else  
        printf("No\n");  
    return 0;  
}  